const http = require("./utils/http");
const wxToast = require("./utils/wx-toast");
const toPromise = require("./utils/to-promise");
const cartData = new Map()



App({
    onLaunch: function () {
        wx.getSystemInfo({
            success: (res) => {
                this.window = { width: res.windowWidth, height: res.screenHeight };
            }
        });
        const config = wx.getExtConfigSync("storeId")
        if (config.storeId) {
            this.storeId = config.storeId
        }
        //加载购物车数据
    },
    payInfo: {},
    cartData,
    global_data: {},
    http,
    wxToast,
    toPromise,
    storeId: 2,
})